//
//  WaterFallLayout.h
//  Ui-Lesson-21-03
//
//  Created by lanou3g on 15/11/30.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol WaterFallLayoutDelegate<NSObject>
-(CGFloat)heightForItemIndexPath:(NSIndexPath *)indexPath;
@end

@interface WaterFallLayout : UICollectionViewLayout
//item 的大小
@property(nonatomic,assign)  CGSize itemSize;

//内边距(距屏幕边缘的距离)
@property(nonatomic,assign) UIEdgeInsets sectionInsets;
//item间距
@property(nonatomic,assign) CGFloat insertItemSpacing;
//列数
@property(nonatomic,assign)NSInteger numebrOfColumns;

@property(nonatomic,weak)id<WaterFallLayoutDelegate>delegate;







@end
